package com.haiwen.boot.vo;

import lombok.Data;
import lombok.ToString;

import java.util.List;

@Data
@ToString
public class responseData<T> {
    private Integer ResponseCode;
    private String  ResponseContent;
    private List<T> ListData;
    private T Data;

    public responseData(Integer responseCode, String responseContent, List<T> listData) {
        ResponseCode = responseCode;
        ResponseContent = responseContent;
        ListData = listData;
    }

    public responseData(Integer responseCode, String responseContent, T data) {
        ResponseCode = responseCode;
        ResponseContent = responseContent;
        Data = data;
    }

    public responseData(Integer responseCode, String responseContent) {
        ResponseCode = responseCode;
        ResponseContent = responseContent;
    }

}
